package com.cgc.venus.server.monitor.bean;

/**
 * 监控查询参数
 * Created by 业哥 on 2017/11/14.
 */
public class MonitorQuery {
    //=======必要参数========
    private String monitorType;    //监控类型  值为:memory/cpu/net-in/net-out
    private String monitorObject; //监控对象  值为:cluster/namespace/node/pod
    private String metricsType;   //监控指标类型 值参考heapster api
    private String times;          //时间参数  如果为时间段 用逗号隔开

    //======可选参数=========
    private String nodeNames;      //当queryType为node时  nodeName为必填值 多个用逗号隔开
    private String namespaceName; //当queryType为namespace时  namespaceName为必填值
    private String podNames;       //当queryType为pod时,namespaceName,podName为必填值 多个用逗号隔开


    public MonitorQuery() {

    }

    public MonitorQuery(String monitorType, String monitorObject, String metricsType, String times, String nodeNames, String namespaceName, String podNames) {
        this.monitorType = monitorType;
        this.monitorObject = monitorObject;
        this.metricsType = metricsType;
        this.times = times;
        this.nodeNames = nodeNames;
        this.namespaceName = namespaceName;
        this.podNames = podNames;
    }

    public String getMonitorType() {
        return monitorType;
    }

    public void setMonitorType(String monitorType) {
        this.monitorType = monitorType;
    }

    public String getMonitorObject() {
        return monitorObject;
    }

    public void setMonitorObject(String monitorObject) {
        this.monitorObject = monitorObject;
    }

    public String getMetricsType() {
        return metricsType;
    }

    public void setMetricsType(String metricsType) {
        this.metricsType = metricsType;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public String getNodeNames() {
        return nodeNames;
    }

    public void setNodeNames(String nodeNames) {
        this.nodeNames = nodeNames;
    }

    public String getNamespaceName() {
        return namespaceName;
    }

    public void setNamespaceName(String namespaceName) {
        this.namespaceName = namespaceName;
    }

    public String getPodNames() {
        return podNames;
    }

    public void setPodNames(String podNames) {
        this.podNames = podNames;
    }
}
